<table class="table">
  <thead>
    <th class="first"><%= sort_link @search, :presentation, "#{t 'helpers.label.taxcategory.presentation'}" %></th>
    <th><%= sort_link @search, :tax, "#{t 'helpers.label.taxcategory.tax'}" %></th>
    <th class="last"></th>
  </thead>
  <tfoot>
    <th><%= button_to_new "Vytvořit novou daňovou skupinu", new_admin_tax_category_path if permitted_to? :create, :admin_tax_categories %></th>
    <th colspan="2"><%= paginate tax_categories %></th>
  </tfoot>
  <tbody>
    <% unless tax_categories.blank? %>
      <%= render :partial => "tax_category", :collection => tax_categories %>
    <% else %>
    <tr>
      <th colspan="10">Nebyly nalezeny žádné daňové skupiny.</th>
    </tr>
    <% end %>
  </tbody>
</table>